package ejercicio4;

public class Productor extends Thread{
	
	private Monitor buffer;

	public Productor(Monitor buffer) {
		super();
		this.buffer=buffer;
	}
	
	@Override
	public void run(){
		while(true){
			this.suspend();
			buffer.producir(this.getId(),this);
		}
	}

}
